home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / Kant Pro source Folder / Kant Pro 1.1 ƒ / Shell ƒ / drag utilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-16  |  1.3 KB  |  31 lines  |  [TEXT/MMCC]

  1. #define USE_STYLED_TEXT        0
  2.  
  3. #include <Drag.h>
  4.  
  5. void InitTheDragManager(void);
  6. Boolean DragManagerAvailableQQ(void);
  7. short TEIsFrontOfLine(short offset, TEHandle theTE);
  8. short TEGetLine(short offset, TEHandle theTE);
  9. short HitTest(Point theLoc, WindowPtr *theWindow);
  10. void DrawCaret(short offset, TEHandle theTE);
  11. #if USE_STYLED_TEXT
  12. void InsertTextAtOffset(short offset, char *theBuf, long size, StScrpHandle theStyl, TEHandle theTE);
  13. #else
  14. void InsertTextAtOffset(short offset, char *theBuf, long size, TEHandle theTE);
  15. #endif
  16. short GetSelectionSize(WindowPtr theWindow);
  17. Ptr GetSelectedTextPtr(WindowPtr theWindow);
  18. #if USE_STYLED_TEXT
  19. pascal OSErr MySendDataProc(FlavorType theType, void *refCon,
  20.                             ItemReference theItem, DragReference theDrag);
  21. #endif
  22. pascal OSErr MyReceiveDropHandler(WindowPtr duhWindow, unsigned long handlerRefCon,
  23.                                   DragReference theDrag);
  24. pascal OSErr MyTrackingHandler(short message, WindowPtr duhWindow,
  25.                                void *handlerRefCon, DragReference theDrag);
  26. Boolean DropLocationIsFinderTrash(AEDesc *dropLocation);
  27. Boolean DragText(WindowPtr theWindow, EventRecord *theEvent, RgnHandle hiliteRgn);
  28. Boolean DragInWindow(WindowPtr theWindow, EventRecord *theEvent);
  29. void ResetHiliteRgn(WindowPtr theWindow);
  30. Boolean CursorInDraggableRgn(Point thePoint, WindowPtr theWindow);
  31.